/**
 * Created by admin on 17/2/20.
 */
const db = require('../db');

const user = db.define('user', {
  user_name: {
    type: db.STRING,
    allowNull: false,
    comment: '用户名',
  },
  pwd: {
    type: db.STRING,
    allowNull: false,
    comment: '用户密码',
  },
  email: {
    type: db.STRING,
    allowNull: false,
    comment: '邮箱',
  },
  login_time: {
    type: db.DATE,
    comment: '登录时间',
  },
  createBy: {
    type: db.BIGINT(11),
    comment: '创建人',
  },
  status: {
    type: db.BOOLEAN,
  },
});
module.exports = user;

